﻿<Window x:Class="WpfApplication2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SQL Niryat" Height="461" Width="540"
        Icon="favicon.ico">
    <Grid>
        <!--<Label 
            Name="lblConnectServer" 
            Content="Connect Server" 
            FontWeight="Black"
            FontSize="12" 
            Target="{Binding ElementName=lblConnect}"  
            MouseLeftButtonUp="lblConnectServer_MouseLeftButtonUp" 
            Height="24" 
            VerticalAlignment="Top" 
            Margin="0,0,408,0">
        </Label>-->
        <!--<Label 
            Name="lblConnect" 
            Content="Connect..." 
            Margin="22,20,420,389" 
            FontSize="12" 
            FontWeight="Black"
            Visibility="Hidden"  
            MouseLeftButtonUp="lblConnect_MouseLeftButtonUp">
        </Label>-->
        <Menu Name="Menu" HorizontalAlignment="Left" VerticalAlignment="Top">
            <MenuItem Header="_Connect Server" FontWeight="Normal" AllowDrop="True" Background="WhiteSmoke">
                <MenuItem Header="_Connect..." FontWeight="Normal" Click="Connect_Click"/>
                <Separator />
                <MenuItem Header="_Exit" FontWeight="Normal" Click="Exit_Click"/>
            </MenuItem>
        </Menu>
        <ComboBox Height="23" 
                  HorizontalAlignment="Left" 
                  Margin="191,14,0,0" 
                  Name="DBcomboBox" 
                  Text="Connect database..."  
                  VerticalAlignment="Top" 
                  Width="320" 
                  SelectionChanged="DBcomboBox_SelectionChanged" 
                  IsEditable="True"  
                  IsEnabled="False"
                  KeyboardNavigation.TabIndex="0"
                  />
        <Border 
            BorderBrush="Silver" 
            BorderThickness="1" 
            Height="363" 
            HorizontalAlignment="Left" 
            Margin="12,47,0,0" 
            Name="border1" 
            VerticalAlignment="Top" 
            Visibility="Visible"
            Width="499">
            <Button 
                Content="Export To Excel" 
                Height="23" 
                Name="btnCreateExcel" 
                Width="124" 
                VerticalAlignment="Bottom" 
                HorizontalAlignment="Right" 
                Margin="8" 
                IsEnabled="False"
                KeyboardNavigation.TabIndex="7"
                Click="btnCreateExcel_Click" />
        </Border>
        <Border 
            BorderBrush="Silver" 
            BorderThickness="1" 
            Height="268" 
            HorizontalAlignment="Left" 
            Margin="22,104,0,0" 
            Name="border2" 
            VerticalAlignment="Top" 
            Width="478" >
            <TextBox 
                Height="175" 
                Name="txtBoxQuery" 
                Width="367" 
                HorizontalAlignment="Right" 
                VerticalAlignment="Bottom" 
                Margin="10,40" 
                TextWrapping="Wrap" 
                ToolTip="Only Select statements are allowed."
                ToolTipService.ShowOnDisabled="True"
                VerticalScrollBarVisibility="Auto" 
                AcceptsReturn="True"
                KeyboardNavigation.TabIndex="4"
                IsEnabled="False"/>
        </Border>
        <Label 
            Content="Query :" 
            Height="28" 
            HorizontalAlignment="Left" 
            Margin="30,0,0,237" 
            Name="lblQuery" 
            VerticalAlignment="Bottom" 
            Width="85" />
        <Label 
            Content="Sheet Name :" 
            Height="28" 
            HorizontalAlignment="Left" 
            Margin="30,115,0,0" 
            Name="lblSheetName" 
            VerticalAlignment="Top" 
            Width="85" />
        <TextBox 
            Height="23" 
            HorizontalAlignment="Left" 
            Margin="122,120,0,0" 
            Name="txtBoxSheetName" 
            VerticalAlignment="Top" 
            Width="365" 
            KeyboardNavigation.TabIndex="3"
            IsEnabled="False" />
        <Button 
            Content="Save Excel Sheet" 
            Height="23" 
            HorizontalAlignment="Left" 
            Margin="260,339,0,0" 
            Name="btnSave" 
            VerticalAlignment="Top" 
            Width="110" 
            IsEnabled="False"
            KeyboardNavigation.TabIndex="5"
            Click="btnSave_Click" />
        <Label 
            Content="Edit :" 
            Height="28" 
            HorizontalAlignment="Left" 
            Margin="242,62,0,0" 
            Name="lblEdit" 
            VerticalAlignment="Top" 
            Width="41" 
            Visibility="Hidden"/>
        <ComboBox 
            Height="23" 
            HorizontalAlignment="Left" 
            Margin="281,67,0,0" 
            Name="comboBoxEdit" 
            VerticalAlignment="Top" 
            Width="219" 
            Visibility="Hidden" 
            SelectionChanged="comboBoxEdit_SelectionChanged" 
            IsEditable="True" 
            KeyboardNavigation.TabIndex="2"
            Text="Edit Saved Excel Sheet..."  />
        <Button 
            Content="Add New Excel Sheet" 
            Height="23" 
            HorizontalAlignment="Left" 
            Margin="22,63,0,0" 
            Name="btnAddSheet" 
            VerticalAlignment="Top" 
            KeyboardNavigation.TabIndex="1"
            IsEnabled="False"
            Width="162" Click="btnAddSheet_Click" />
        <Button 
            Content="Cancel" 
            Height="23" 
            HorizontalAlignment="Right" 
            Margin="0,339,33,0" 
            Name="btnCancel" 
            VerticalAlignment="Top" 
            IsEnabled="False"
            Width="110" Click="btnCancel_Click" />
    </Grid>
</Window>
